﻿
@if((ViewBag.sw).Equals("1")) {
    @Html.DropDownList("nIdeProvNac", (IEnumerable<SelectListItem>)ViewBag.distritos, "--Seleccione--", new { @class = "select8" , style = "width:200px;", onchange="javascript:cargaUbigeo(this,'2');" })
}
else if ((ViewBag.sw).Equals("2"))
{
     @Html.DropDownList("nIdeDistritoNac", (IEnumerable<SelectListItem>)ViewBag.distritos, "--Seleccione--", new { @class = "select8", style = "width:200px;" })
}else if ((ViewBag.sw).Equals("3"))
{
     @Html.DropDownList("nIdeProvNac", (IEnumerable<SelectListItem>)ViewBag.distritos, "--Seleccione--", new { @class = "select8" , style = "width:200px;", onchange="javascript:cargaUbigeo(this,'4');" })
}else if ((ViewBag.sw).Equals("4"))
{
     @Html.DropDownList("nIdeDistritoNac", (IEnumerable<SelectListItem>)ViewBag.distritos, "--Seleccione--", new { @class = "select8", style = "width:200px;" })
}else if ((ViewBag.sw).Equals("5"))
{
     @Html.DropDownList("SIPDetDireccion1.nIdeProv", (IEnumerable<SelectListItem>)ViewBag.distritos, "--Seleccione--", new { @class = "select8" , style = "width:200px;", onchange="javascript:cargaUbigeo(this,'6');" })
}else if ((ViewBag.sw).Equals("6"))
{
     @Html.DropDownList("SIPDetDireccion1.nIdeDistrito", (IEnumerable<SelectListItem>)ViewBag.distritos, "--Seleccione--", new { @class = "select8", style = "width:200px;" })
}